import request from '@/utils/request'

// 查询成果转化列表
export function listTransformation(query) {
  return request({
    url: '/system/transformation/list',
    method: 'get',
    params: query
  })
}

// 查询成果转化详细
export function getTransformation(id) {
  return request({
    url: '/system/transformation/' + id,
    method: 'get'
  })
}

// 新增成果转化
export function addTransformation(data) {
  return request({
    url: '/system/transformation',
    method: 'post',
    data: data
  })
}

// 修改成果转化
export function updateTransformation(data) {
  return request({
    url: '/system/transformation',
    method: 'put',
    data: data
  })
}

// 删除成果转化
export function delTransformation(id) {
  return request({
    url: '/system/transformation/' + id,
    method: 'delete'
  })
}
